package com.jic.market.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.market.entity.BargainLog;
import com.jic.market.request.rest.bargain.MyBargainRestRequest;
import com.jic.market.response.rest.bargain.BargainLogRestResponse;
import com.jic.market.response.rest.bargain.MyBargainRestResponse;

import java.lang.Long;
import java.math.BigDecimal;
import java.util.List;


/**
* 砍价记录表
* @author : 
* @email : 
* @since : 2020-09-10 06:20:18
* @version : v1.0.0
*/
public interface BargainLogService {

    long insert(BargainLog bargainLog);

    long delete(Long id);

    long update(BargainLog bargainLog);

    BargainLog queryByPrimaryKey(Long id);

    List<BargainLog> query(BargainLog bargainLog);

    PageResult<BargainLog> queryPage(BargainLog bargainLog, Page pageQuery);

    BigDecimal bargainMoneyCount(BargainLog bargainLog);

    PageResult<BargainLogRestResponse> listRestPage(MyBargainRestRequest myBargainRestRequest, Page pageQuery);

}